package net.goods.db;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;

public class GoodsDAO {
	DataSource ds;
	ResultSet rs = null;
	Connection con = null;
	PreparedStatement pstmt = null;
	GoodsBean goodsbean = new GoodsBean();
	
	public GoodsDAO() throws Exception{
		try {
			Context init = new InitialContext();
			ds=(DataSource)init.lookup("java:comp/env/jdbc/shopping");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
